package com.qian.ddj.web.controller;

import com.qian.api.ddj.model.OperatorLog;
import com.qian.api.ddj.model.OperatorLogQuery;
import com.qian.api.ddj.service.IOperatorLogService;
import com.yaowk.api.common.PageReq;
import com.yaowk.api.common.PageResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ddj/operatorLog")
@Api(tags = "操作日志")
public class OperatorLogController {

    @Autowired
    private IOperatorLogService operatorLogService;

    @GetMapping
    @ApiOperation("操作日志列表")
    public PageResp<OperatorLog> list(OperatorLogQuery operatorLogQuery, PageReq pageReq) {
        PageResp<OperatorLog> pageResp = operatorLogService.findAll(operatorLogQuery, pageReq);
        return pageResp;
    }
}
